#ifndef _simple_threading_h_
#define _simple_threading_h_

#include <stdio.h>
#include <pthread.h>

/* Abstraction of pthread_t */
typedef pthread_t SimThr_ThreadRef, ThreadObject;

/* Abstraction for Thread Function Prototype */
typedef void * (*SimThr_ThreadFunc)( void * pvParams );

/* Task Creator */
SimThr_ThreadRef SimThr_CreateThread( SimThr_ThreadFunc thread, void * vpParams );

/* Task Join */
void SimThr_WaitForThreadEnd( SimThr_ThreadRef thread );

#endif /* _simple_threading_h_ */
